<?php 

foreach ($list['data'] as $key => $data) {
	printf("
		<dl>
			<dt>%s</dt>
			<dd>%s</dd>
			<dd>%s</dd>
		</dl>", anchor("merchant/detail/{$data['id']}", $data['name'], ['target' => '_blank']), $data['abstract'], $data['summary']);
}


printf("<div>共 %d 条, 第 %d 页 / 共 %d 页, 每页 %d 条</div>", 
		$list['pages']['total'], 
		$list['pages']['page'], 
		$list['pages']['count'], 
		$list['pages']['size']);
for ($page = 1; $page <= $list['pages']['count']; $page ++) {
	printf("<span style='display:inline-block;width:20px;'>%s</span>", anchor("merchant/index/{$page}/{$list['pages']['size']}", $page));
}

?>


